package DrawPic;

import java.util.Scanner;

public class ZhuChengXu {

	public static void main(String[] args) {	
			Scanner sca=new Scanner(System.in);
			System.out.println("欢迎进入几何图形绘画系统，输入你要执行的命令：");	
			while(true){
				String want=sca.next();
				if(want.equals("绘制正方形")){
					ZhengFangxin.draw();
				}else if(want.endsWith("绘制三角形")){
					Triangle.draw();
				}else if(want.equals("绘制长方形")){
					Rectangle.draw();
				}else if(want.equals("清除正方形")){
					ZhengFangxin.erase();
					System.out.println("清屏成功，下一步你画干什么呢？");
				}else if(want.equals("清除三角形")){
					Triangle.erase();
					System.out.println("清屏成功，下一步你画干什么呢？");
				}else if(want.equals("清除长方形")){
					Rectangle.erase();
					System.out.println("清屏成功，下一步你画干什么呢？");
				}else {
					System.out.println("你输入的图形不符合要求，请重新输入：");
				}
			
			}
			
	}
}